package top.kaoshanji.p1ch03b;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 代码清单-p1ch03b-58页a：在一个Bean里加载配置属性
 * @author kaoshanji
 * ^_^
 * create time 2025/5/16 16:27
 */
@Component
@ConfigurationProperties("amazon")
public class AmazonProperties {

    private String associateId;

    public String getAssociateId() {
        return associateId;
    }

    public void setAssociateId(String associateId) {
        this.associateId = associateId;
    }
}
